﻿<%@ page language="C#" autoeventwireup="true" inherits="LinkManMgr, HF.Business.UI.OA_deploy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>通讯录</title>
    <link href="css/hfmanger.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
           <table align="center" cellpadding="0" cellspacing="0" width=100% >
               <tr>
                   <td colspan="2" style="height: 23px" valign="top" class="toolbar">
                       <asp:Image ID="Image1" runat="server" ImageUrl="images/rss_2.gif" /><strong>通讯录</strong></td>
               </tr>
                <tr>
                    <td colspan="2" valign="top" style="height: 15px">
                    </td>
                </tr>
               <tr>
                   <td colspan="2" style="height: 15px" valign="top" width="100%" align=center>
                       <table style="width: 98%" border="1">
                           <tr>
                               <td valign="top">
                                                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                                    <tr>
                                                        <td class="listtop">当前类别</td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" valign="top">
                                                            <asp:TreeView ID="tvArch" runat="server" Height="160px" NodeIndent="10" ShowLines="True"
                                                                Width="144px" OnSelectedNodeChanged="tvArch_SelectedNodeChanged">
                                                                <ParentNodeStyle CssClass="action" />
                                                                <HoverNodeStyle Font-Underline="False" />
                                                                <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
                                                                <NodeStyle CssClass="action" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                                                    HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                                                            </asp:TreeView>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="list_content">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                               </td>
                               <td style="width: 100%" valign="top">
                                                <table width=100% >
                                                    <tr>
                                                        <td  class="listtop" style="height: 15px" >
                                                        
                                                            <table style="width: 268px">
                                                                <tr>
                                                                    <td>
                                                            <asp:Button ID="btnCaddress" runat="server" Text="增加公共通讯录" OnClick="btnCaddress_Click" CssClass="btn" Width="131px"/></td>
                                                                    <td>
                                    <asp:Button ID="btnPaddress" runat="server" Text="增加私人通讯录" OnClick="btnPaddress_Click" CssClass="btn" /></td>
                                                                    <td>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan=2 width=100% >
                                                <asp:GridView ID="gvUserlist" runat="server"
                                                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                    PageSize="15" Width="100%" AutoGenerateColumns="False">
                                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                                    <Columns>
                                                        <asp:BoundField DataField="UserName" HeaderText="名称" />
                                                        <asp:BoundField DataField="UserSex" HeaderText="性别" />
                                                        <asp:BoundField DataField="UserTelephone" HeaderText="电话" />
                                                        <asp:BoundField DataField="UserFax" HeaderText="传真" />
                                                        <asp:BoundField DataField="UserEmail" HeaderText="邮件" />
                                                        <asp:BoundField DataField="UserQQ" HeaderText="QQ" />
                                                        <asp:BoundField DataField="UserMsn" HeaderText="MSN" />
                                                        <asp:HyperLinkField DataNavigateUrlFields="userId" DataNavigateUrlFormatString="CompanyLinkManEdit.aspx?UserId={0}"
                                                            HeaderText="操作" Target="_blank" Text="详细" />
                                                    </Columns>
                                                    <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="#2461BF" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <HeaderStyle Font-Bold="True"  HorizontalAlign="Left" CssClass="gridHeadList" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                </asp:GridView>
                                                <asp:GridView ID="gvAddresslist" runat="server"
                                                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                                                    PageSize="15" Width="100%" AutoGenerateColumns="False">
                                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                                    <Columns>
                                                        <asp:BoundField DataField="Name" HeaderText="名称" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Company" HeaderText="公司" >
                                                            <ItemStyle Width="12%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Address" HeaderText="地址" >
                                                            <ItemStyle Width="12%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Tel" HeaderText="公司电话" >
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Mbtel" HeaderText="移动电话" >
                                                            <ItemStyle Width="10%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Fax" HeaderText="传真" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Email" HeaderText="邮件" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Zipcode" HeaderText="邮编" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="QQ" HeaderText="QQ" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="MSN" HeaderText="MSN" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:BoundField>
                                                        <asp:HyperLinkField DataNavigateUrlFields="taskid,addtype" DataNavigateUrlFormatString="LinkManEdit.aspx?UserId={0}&amp;AddType={1}&amp;State=编辑" HeaderText="操作" Text="详细" Target="_blank" >
                                                            <ItemStyle Width="8%" />
                                                        </asp:HyperLinkField>
                                                    </Columns>
                                                    <PagerStyle ForeColor="White" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <HeaderStyle Font-Bold="True" HorizontalAlign="Left" CssClass="gridHeadList" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                </asp:GridView>
                                                        </td>
                                                    </tr>
                                                </table>
                               </td>
                           </tr>
                       </table>
                   </td>
               </tr>
            </table>
        </div>
    
    </div>
    </form>
</body>
</html>
